﻿<ContentDialog 
    x:Name="ContentDialog"
    x:Class="Sidvall.UI.Uwp.Dialogs.SecurityDialog"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:local="using:Sidvall.UI.Uwp.Dialogs"
    xmlns:controls2="using:Sidvall.UI.Uwp.Controls"
    xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" 
    PrimaryButtonText="{Binding ViewModel.PrimaryButtonText, ElementName=SecurityControl}"
    SecondaryButtonText="{Binding ViewModel.SecondaryButtonText, ElementName=SecurityControl}"
    PrimaryButtonClick="ContentDialog_PrimaryButtonClick"
    SecondaryButtonClick="ContentDialog_SecondaryButtonClick"
    IsPrimaryButtonEnabled="{Binding ViewModel.IsPrimaryButtonEnabled, ElementName=SecurityControl}"
    IsSecondaryButtonEnabled="{Binding ViewModel.IsSecondaryButtonEnabled, ElementName=SecurityControl}"
    Title="{Binding ViewModel.ViewTitle, ElementName=SecurityControl}"
    FullSizeDesired="True">

    <Grid>
        <controls2:SecurityControl x:Name="SecurityControl" LogOnCompleted="SecurityControl_LogOnCompleted" />
    </Grid>
</ContentDialog>
